3.89 \(\int \frac {\cos (a+b \log (c x^n))}{x} \, dx\)

Optimal. Leaf size=18 \[ \frac {\sin \left (a+b \log \left (c x^n\right )\right )}{b n} \]

[Out]

sin(a+b*ln(c*x^n))/b/n

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {2637} \[ \frac {\sin \left (a+b \log \left (c x^n\right )\right )}{b n} \]

Antiderivative was successfully verified.

[In]

Int[Cos[a + b*Log[c*x^n]]/x,x]

[Out]

Sin[a + b*Log[c*x^n]]/(b*n)

Rule 2637

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin {align*} \int \frac {\cos \left (a+b \log \left (c x^n\right )\right )}{x} \, dx &=\frac {\operatorname {Subst}\left (\int \cos (a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=\frac {\sin \left (a+b \log \left (c x^n\right )\right )}{b n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.03, size = 37, normalized size = 2.06 \[ \frac {\sin (a) \cos \left (b \log \left (c x^n\right )\right )}{b n}+\frac {\cos (a) \sin \left (b \log \left (c x^n\right )\right )}{b n} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[a + b*Log[c*x^n]]/x,x]

[Out]

(Cos[b*Log[c*x^n]]*Sin[a])/(b*n) + (Cos[a]*Sin[b*Log[c*x^n]])/(b*n)

________________________________________________________________________________________

fricas [A]  time = 0.57, size = 19, normalized size = 1.06 \[ \frac {\sin \left (b n \log \relax (x) + b \log \relax (c) + a\right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*log(c*x^n))/x,x, algorithm="fricas")

[Out]

sin(b*n*log(x) + b*log(c) + a)/(b*n)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cos \left (b \log \left (c x^{n}\right ) + a\right )}{x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*log(c*x^n))/x,x, algorithm="giac")

[Out]

integrate(cos(b*log(c*x^n) + a)/x, x)

________________________________________________________________________________________

maple [A]  time = 0.01, size = 19, normalized size = 1.06 \[ \frac {\sin \left (a +b \ln \left (c \,x^{n}\right )\right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(a+b*ln(c*x^n))/x,x)

[Out]

sin(a+b*ln(c*x^n))/b/n

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 18, normalized size = 1.00 \[ \frac {\sin \left (b \log \left (c x^{n}\right ) + a\right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*log(c*x^n))/x,x, algorithm="maxima")

[Out]

sin(b*log(c*x^n) + a)/(b*n)

________________________________________________________________________________________

mupad [B]  time = 2.28, size = 18, normalized size = 1.00 \[ \frac {\sin \left (a+b\,\ln \left (c\,x^n\right )\right )}{b\,n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(a + b*log(c*x^n))/x,x)

[Out]

sin(a + b*log(c*x^n))/(b*n)

________________________________________________________________________________________

sympy [A]  time = 0.89, size = 37, normalized size = 2.06 \[ \begin {cases} \log {\relax (x )} \cos {\relax (a )} & \text {for}\: b = 0 \wedge \left (b = 0 \vee n = 0\right ) \\\log {\relax (x )} \cos {\left (a + b \log {\relax (c )} \right )} & \text {for}\: n = 0 \\\frac {\sin {\left (a + b n \log {\relax (x )} + b \log {\relax (c )} \right )}}{b n} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(a+b*ln(c*x**n))/x,x)

[Out]

Piecewise((log(x)*cos(a), Eq(b, 0) & (Eq(b, 0) | Eq(n, 0))), (log(x)*cos(a + b*log(c)), Eq(n, 0)), (sin(a + b*
n*log(x) + b*log(c))/(b*n), True))

________________________________________________________________________________________